package cn.com.api.service.impl.base;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.com.api.entity.ApiT_address;
import cn.com.api.mapper.ApiT_addressMapper;

/**
 * 
 **/
@Service
public class T_addressServiceImplBase {
	@Autowired
	private ApiT_addressMapper apiT_addressMapper;
    
    // 根据id获取
	public ApiT_address findT_addressById(Integer id){
		ApiT_address t_address = apiT_addressMapper.findT_addressById( id );
		return t_address;
	}
    
    //查看数据集
	public List<ApiT_address> findT_addresss(){
        List<ApiT_address> t_addresss = apiT_addressMapper.findT_addresss();
		return t_addresss;
    }
    
	// 添加
	public int insertT_address(ApiT_address t_address){
		int ret_I= apiT_addressMapper.insertT_address(t_address);
		return ret_I;
	}

	// 修改
	public int updateT_address(ApiT_address t_address){
		int ret_I= apiT_addressMapper.updateT_address(t_address);
		return ret_I;
	}
	
    // 删除
	public int deleteT_address(Integer id){
		int ret_I= apiT_addressMapper.deleteT_address( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


